package com.haistand.module.common.core;


import com.haistand.module.common.utils.StringUtils;

/**
 * SEO内容
 *
 * @author :anjero
 * @version :1.0
 * @Title :Seo.java
 * @Description:
 * @Datetime : 2014-6-9 上午11:30
 * @Copyright :Copyright (c) 2012
 * @Company :Cheshell
 */

public class Seo {


    public static final String SEO_TITLE = "标题-阳光易手车";

    public static final String SEO_DESCRIPTION = "说明";

    public static final String SEO_KEYWORDS = "这是关键字";


    private String title;
    private String keywords;
    private String description;

    public String getDescription() {
        return StringUtils.isEmpty(description) ? SEO_DESCRIPTION : description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getKeywords() {
        return StringUtils.isEmpty(keywords) ? SEO_KEYWORDS :
                keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getTitle() {
        return StringUtils.isEmpty(title) ? SEO_TITLE : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Seo{");
        sb.append("title='").append(title).append('\'');
        sb.append(", keywords='").append(keywords).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
